﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Configuration;
using System.Xml;

namespace SYcwpb.WinForm.JCT
{
    public partial class TimeParaSetFrm : Form
    {
        public TimeParaSetFrm()
        {
            InitializeComponent();
            //string getTimeStr1 = GlobalVariables.GetValue("xh");// string.Format("{0}", ConfigurationSettings.AppSettings["xh"]);
            //string getTimeStr2 = GlobalVariables.GetValue("mq");// string.Format("{0}", ConfigurationSettings.AppSettings["mq"]);
            //string getTimeStr3 = GlobalVariables.GetValue("yfq");// string.Format("{0}", ConfigurationSettings.AppSettings["yfq"]);
            //string getTimeStr4 = GlobalVariables.GetValue("dxc");// string.Format("{0}", ConfigurationSettings.AppSettings["dxc"]);
            //tbDXC.Text = getTimeStr4;
            //tbMQ.Text = getTimeStr2;
            //tbXH.Text = getTimeStr1;
            //tbYFQ.Text = getTimeStr3;
        }

        private void btn_save_Click(object sender, EventArgs e)
        {
            //if (tbXH.Text!=""&&tbYFQ.Text!=""&&tbMQ.Text!=""&&tbDXC.Text!="")
            //{
            //    try
            //    {          
            //        GlobalVariables.SetValue("yfq", tbYFQ.Text);
            //        GlobalVariables.SetValue("xh", tbXH.Text);
            //        GlobalVariables.SetValue("mq", tbMQ.Text);
            //        GlobalVariables.SetValue("dxc", tbDXC.Text);
            //        MessageBox.Show("保存成功！");
            //        this.Dispose();
            //    }
            //    catch
            //    {
            //        MessageBox.Show("保存失败！");
            //    }
                
            //}
            //else
            //{
            //    MessageBox.Show("请完整填写各个车库出车的提前量！");
            //}
        }

        private void btn_exit_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
